package com.huike.web.controller.clues;


import com.huike.clues.domain.dto.TbClueTrackRecordDto;
import com.huike.clues.service.ITbClueTrackRecordService;
import com.huike.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("/clues/record")
public class TbClueTrackRecordController {

    @Autowired
    private ITbClueTrackRecordService tbClueTrackRecordService;


    @PostMapping
    public AjaxResult saveTbClueTrackRecord(@RequestBody TbClueTrackRecordDto tbClueTrackRecordDto){
        return AjaxResult.success(tbClueTrackRecordService.saveClueTrackRecord(tbClueTrackRecordDto));

    }
}
